package com.jiyun.controller;

import com.jiyun.service.InvitationService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/admin/invitation")
@RestController
public class InvitationController {
    @Autowired
    private InvitationService invitationService;

    @DeleteMapping("/deleteById/{id}")
    @ApiOperation("根据inviter_user_id删除")
    public void deleteInvitationById(@PathVariable Integer id) {
        invitationService.deleteInvitationById(id);
    }

}
